package com.hsc.www.mybatis.soEasy.ee.crudMapper;


import com.hsc.www.mybatis.soEasy.ee.rr.BaseExample;
import com.hsc.www.mybatis.soEasy.ee.rr.Strategy;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;

public interface DeleteBaseMapper<ID extends Serializable, Entity, Example extends BaseExample> extends BaseMapper {

    int deleteByPrimaryKey(@Param("id") ID id);

    int deleteByExample(@Param("example") Example example);

    int deleteByEntity(@Param("entity") Entity entity,
                       @Param("strategy") Strategy strategy
    );

}
